﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RedisDemo.Redis;

/// <summary>
/// 缓存配置
/// </summary>
public class CacheConfig
{
    /// <summary>
    /// 启用redis？
    /// </summary>
    public bool RedisCachingEnabled { get; set; } = true;

    /// <summary>
    /// redis连接字符串
    /// </summary>
    public string RedisCachingConnectionString { get; set; }
    /// <summary>
    /// 分钟数
    /// </summary>
    public int MemoryExpireTime { set; get; } = 120;
    public int DefaultDB { set; get; } = 1;
}
